import request from '@/utils/request'

export const getList = ({ page, pageSize, poleName, start, end }) => {
  return request.get('/park/propertyfee', {
    params: {
      page, pageSize, poleName, start, end
    }
  })
}

// 删除列表
export const delList = (id) => {
  return request.delete(`/park/propertyfee/${id}`)
}
// 查寻楼宇
export const buildList = () => {
  return request.get(`/park/all/building`)
}
// 支付金额
export const priceNum = ({ startTime, endTime, buildingId }) => {
  return request.post('/park/propertyfee/pre/payment', { startTime, endTime, buildingId })
}
// 添加列表
export const addList = ({ enterpriseId, buildingId, startTime, endTime, paymentAmount, paymentMethod }) => {
  return request.post(`/park/propertyfee`, {
    enterpriseId, buildingId, startTime, endTime, paymentAmount, paymentMethod
  })
}
// 编辑列表
export const editList = (id) => {
  return request.get(`/park/propertyfee/${id}`)
}

